(sgml-xml-auto-coding-function): Call
authorKenichi Handa <handa@m17n.org>
Mon, 19 Aug 2002 06:39:06 +0000 (06:39 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 19 Aug 2002 06:39:06 +0000 (06:39 +0000)
re-search-forward with NOERROR t..

lisp/international/mule.el

index 6cc905603e4eef52391b55c70b9c49fff364d45c..e937d11030ef5fabe57c814e9516ccc041ec5378 100644 (file)
@@ -2003,7 +2003,7 @@ Analogous to `define-translation-table', but updates
 (defun sgml-xml-auto-coding-function (size)
   "Determine whether the buffer is XML, and if so, its encoding.
 This function is intended to be added to `auto-coding-functions'."
-  (when (re-search-forward "\\`[[:space:]\n]*<\\?xml")
+  (when (re-search-forward "\\`[[:space:]\n]*<\\?xml" nil t)
     (let ((end (save-excursion
                 ;; This is a hack.
                 (re-search-forward "\"\\s-*\\?>" size t))))